<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ratingBar style-1</title>
    <link rel="stylesheet" href="../../model/jsFn.css">
    <link rel="stylesheet" href="../../model/element.css">
</head>
<body>
<!--目录-->
<div class="catalog">
    <h2>目录</h2>
    <ul>
        <li>
            <p><a href="#element">< ratingBar ></a></p>
        </li>
        <li>
            <p><a href="#attribute">属性</a></p>
            <ul>
                <li><p><a href="#example">实例</a></p></li>
                <li><p><a href="#optional">可选属性</a></p></li>
                <li><p><a href="#note">提示和注释</a></p></li>
                <li><p><a href="#sketch">效果图</a></p></li>
            </ul>
        </li>
        <li>
            <p><a href="#jsFn">js函数</a></p>
            <ul>
                <li><p><a href="#jsFn_val">val</a></p></li>
            </ul>
        </li>
        <li>
            <p><a href="#childElement">子标签</a></p>
            <ul>
                <li><p><a href="#childElement_p">p</a></p></li>
                <li><p><a href="#childElement_rp">rp</a></p></li>
                <li><p><a href="#childElement_img">img</a></p></li>
            </ul>
        </li>
    </ul>
</div>
<!--标签-->
<div id="element">
    <h2>ratingBar style1</h2>
    <div>简介:</div>
    <p>五星评分的进度条</p>
</div>
<!--属性-->
<div id="attribute">
    <h2>属性</h2>
    <div style="margin-left: 25px" id="example">
        <h3>实例:</h3>
        <!--xmp标签可以直接书写xml格式文本-->
        <xmp>
            <ratingBar  ratingBar="10" cglistener="false">
                <p>p</p>
                <rp>rp</rp>
                <img>img</img>
            </ratingBar>
        </xmp>
    </div>
    <div id="optional">
        <h3>可选属性:</h3>
        <table >
            <tbody>
                <tr>
                    <th>属性</th>
                    <th>值</th>
                    <th>描述</th>
                </tr>
                <tr>
                    <td>ratingBar</td>
                    <td>10</td>
                    <td>五角星的个数</td>
                </tr>
                <tr>
                    <td>cglistener</td>
                    <td>true</td>
                    <td>表示是否把rp标签的内容跟随五角星而改变，比如选中5个，rp显示“5分”</td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="note">
        <h3>提示和注释:</h3>

    </div>
    <div id="sketch">
        <h3>效果图:</h3>
        <img src="img/ratingbar1.png" alt="">
    </div>
</div>
<!--js方法-->
<div id="jsFn">
    <h2>js方法</h2>
    <div class="jsFnModel" id="jsFn_val">
        <h3>val</h3>
        <div class="shape">
            <h3>函数使用样式</h3>
            <p>ratingBar.val()->float</p>
        </div>
        <div class="profile">
            <h3>函数功能简介</h3>
            <p>返回评分</p>
        </div>
        <div class="version">
            <p>稳定性;2 - 稳定的</p>
            <p>新增于:v0.0.0</p>
        </div>
        <div class="params">
            <h3>参数列表:</h3>
            <p>无</p>
        </div>
        <div class="res">
            <h3>返回值:</h3>
            <p>float</p>
            <p>评分数</p>
        </div>
        <div class="code">
            <h3>例子</h3>
            <pre>
            <code>
                let star = ratingBar.val();
                console.log(star);
                //返回评分数
            </code>
        </pre>
        </div>
        <div class="error">
            <h3>抛出错误</h3>
        </div>
    </div>
</div>
<!--子标签-->
<div id="childElement">
    <h2>子标签</h2>
    <div id="childElement_p">
        <h3>p</h3>
        <p>ratingBar 左边的控件</p>
        <p>用法参见 <a href="../p/index.html">< p ></a> </p>
    </div>
    <div id="childElement_rp">
        <h3>rp</h3>
        <p>ratingBar 右边的控件，</p>
        <p>用法参见 <a href="../p/index.html">< p ></a> </p>
    </div>
    <div id="childElement_img">
        <h3>img</h3>
        <p>ratingBar 的图片</p>
        <p>用法参见 <a href="../img/index.html">< img ></a> </p>
    </div>
</div>
<div class="author"><p>by-姜进</p></div>
</body>
</html>